lib/pull: Allow downgrade protection with overrides
authorJonathan Lebon <jonathan@jlebon.com>
Fri, 26 Jul 2019 15:52:18 +0000 (11:52 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 29 Jul 2019 13:58:29 +0000 (13:58 +0000)
commit9332830e09e285ba1db9357a4e695d1251b00dd7
tree80cdd4932e9d3f1f59b383bf31f9a2667d1e57f4
parentc9ecfb1d81b5592ab9b5978da440b2997b8716a3
lib/pull: Allow downgrade protection with overrides

There's a valid use case for enabling the timestamp downgrade check
while still also using override commits.

We'll make use of this in Fedora CoreOS, where the agent specifies the
exact commit to upgrade to, while still enforcing that it be newer.

Closes: #1891
Approved by: cgwalters
src/libostree/ostree-repo-pull.c
tests/pull-test.sh